# coding:UTF-8
# ________________________
# Project_Name:pythonProject
# File_Name:Administrator
# Author:Administrator
# Date_Time:2022/4/22 10:38
# Description:
# ________________________
from selenium import webdriver
import time
from selenium.webdriver.common.by import By



def  foo1():
    driver = webdriver.Chrome()

    driver.maximize_window()

    driver.get(r"C:\PycharmProjects\pythonProject\pyzidonghua\selenium_3\example.html")
    time.sleep(2)

    driver.find_element(By.NAME,("attach[]")).send_keys(r"C:\Users\Administrator\Desktop")
    time.sleep(3)



    driver.quit()

if  __name__=="__main__":
    foo1()